/*
#Copyright (c) 2013, Philippe Bordron <philippe.bordron@gmail.com>
#
# This file is part of SIPPER.
#
# DCC is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU LESSER GENERAL PUBLIC LICENSE for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# along with SIPPER.  If not, see <http://www.gnu.org/licenses/>
*/
package combi.wip.sipper.io.dot;

public class DescriptionNode {

	private String rdeb = "";
	private int nbChemins = 0;
	private long poidstotal = 0;
	private long poidsSsGraph = 0;
	private double poidsMoyen = 0;
	
	public DescriptionNode(String rtoR, int nbChemins, long poidsTotal, long poidsSsgraph)
	{
		this.rdeb = rtoR;
		this.nbChemins = nbChemins;
		this.poidstotal = poidsTotal;
		this.poidsMoyen = poidstotal /(double)nbChemins;
		this.poidsSsGraph = poidsSsgraph;
	}
	
	
	public String toString()
	{
		String result = "\"{" + rdeb +" | "+ "nb chemins" + " | " + "poids total" + " | " + "poids moyen" + " | " + "poids sous-graphe" +
		"}|{ " + " | "+  nbChemins + " | " + poidstotal + " | " + poidsMoyen + " | " + poidsSsGraph
		+ "}\",shape=record";
		
		return result;
	}
}
